Optimal. Leaf size=54 \[ \frac{\sqrt{\pi } a \text{Erf}(a+b x)}{4 b^2}-\frac{\sqrt{\pi } a \text{Erfi}(a+b x)}{4 b^2}+\frac{\cosh \left ((a+b x)^2\right )}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0532086, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.7, Rules used = {5364, 6742, 5298, 2204, 2205, 5320, 2638} \[ \frac{\sqrt{\pi } a \text{Erf}(a+b x)}{4 b^2}-\frac{\sqrt{\pi } a \text{Erfi}(a+b x)}{4 b^2}+\frac{\cosh \left ((a+b x)^2\right )}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5364
Rule 6742
Rule 5298
Rule 2204
Rule 2205
Rule 5320
Rule 2638
Rubi steps
\begin{align*} \int x \sinh \left ((a+b x)^2\right ) \, dx &=\frac{\operatorname{Subst}\left (\int (-a+x) \sinh \left (x^2\right ) \, dx,x,a+b x\right )}{b^2}\\ &=\frac{\operatorname{Subst}\left (\int \left (-a \sinh \left (x^2\right )+x \sinh \left (x^2\right )\right ) \, dx,x,a+b x\right )}{b^2}\\ &=\frac{\operatorname{Subst}\left (\int x \sinh \left (x^2\right ) \, dx,x,a+b x\right )}{b^2}-\frac{a \operatorname{Subst}\left (\int \sinh \left (x^2\right ) \, dx,x,a+b x\right )}{b^2}\\ &=\frac{\operatorname{Subst}\left (\int \sinh (x) \, dx,x,(a+b x)^2\right )}{2 b^2}+\frac{a \operatorname{Subst}\left (\int e^{-x^2} \, dx,x,a+b x\right )}{2 b^2}-\frac{a \operatorname{Subst}\left (\int e^{x^2} \, dx,x,a+b x\right )}{2 b^2}\\ &=\frac{\cosh \left ((a+b x)^2\right )}{2 b^2}+\frac{a \sqrt{\pi } \text{erf}(a+b x)}{4 b^2}-\frac{a \sqrt{\pi } \text{erfi}(a+b x)}{4 b^2}\\ \end{align*}
Mathematica [A] time = 0.0269452, size = 44, normalized size = 0.81 \[ \frac{\cosh \left ((a+b x)^2\right )}{2 b^2}-\frac{\sqrt{\pi } a (\text{Erfi}(a+b x)-\text{Erf}(a+b x))}{4 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.029, size = 66, normalized size = 1.2 \begin{align*}{\frac{{{\rm e}^{- \left ( bx+a \right ) ^{2}}}}{4\,{b}^{2}}}+{\frac{a{\it Erf} \left ( bx+a \right ) \sqrt{\pi }}{4\,{b}^{2}}}+{\frac{{{\rm e}^{ \left ( bx+a \right ) ^{2}}}}{4\,{b}^{2}}}+{\frac{{\frac{i}{4}}a\sqrt{\pi }{\it Erf} \left ( ibx+ia \right ) }{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.67452, size = 948, normalized size = 17.56 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.8869, size = 317, normalized size = 5.87 \begin{align*} \frac{{\left (\sqrt{\pi } a \sqrt{b^{2}} \operatorname{erf}\left (\frac{\sqrt{b^{2}}{\left (b x + a\right )}}{b}\right ) e^{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} - \sqrt{\pi } a \sqrt{b^{2}} \operatorname{erfi}\left (\frac{\sqrt{b^{2}}{\left (b x + a\right )}}{b}\right ) e^{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} + b e^{\left (2 \, b^{2} x^{2} + 4 \, a b x + 2 \, a^{2}\right )} + b\right )} e^{\left (-b^{2} x^{2} - 2 \, a b x - a^{2}\right )}}{4 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \sinh{\left (a^{2} + 2 a b x + b^{2} x^{2} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.15458, size = 134, normalized size = 2.48 \begin{align*} -\frac{-\frac{i \, \sqrt{\pi } a \operatorname{erf}\left (i \, b{\left (x + \frac{a}{b}\right )}\right )}{b} - \frac{e^{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}}{b}}{4 \, b} - \frac{\frac{\sqrt{\pi } a \operatorname{erf}\left (-b{\left (x + \frac{a}{b}\right )}\right )}{b} - \frac{e^{\left (-b^{2} x^{2} - 2 \, a b x - a^{2}\right )}}{b}}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]